package com.example.jyjava.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Consent {
    private Integer id;
    private String title;
    private String content;
    private String price;
    private String shopNum;
    private String shopType;
    private String shopUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String userId;
    private Integer look;
    private boolean deleteType;
    private boolean shopConsent;
    private Integer consentId;
    private String phone;
    private String address;
    private String remark;
    private User user;
    private User uuser;

    public Consent() {
    }

    public Consent(Integer id, String title, String content, String price, String shopNum, String shopType, String shopUrl, Date creatTime, Date updateTime, String userId, Integer look, boolean deleteType, boolean shopConsent, Integer consentId, String phone, String address, String remark, User user, User uuser) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.price = price;
        this.shopNum = shopNum;
        this.shopType = shopType;
        this.shopUrl = shopUrl;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
        this.userId = userId;
        this.look = look;
        this.deleteType = deleteType;
        this.shopConsent = shopConsent;
        this.consentId = consentId;
        this.phone = phone;
        this.address = address;
        this.remark = remark;
        this.user = user;
        this.uuser = uuser;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getShopNum() {
        return shopNum;
    }

    public void setShopNum(String shopNum) {
        this.shopNum = shopNum;
    }

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    public String getShopUrl() {
        return shopUrl;
    }

    public void setShopUrl(String shopUrl) {
        this.shopUrl = shopUrl;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getLook() {
        return look;
    }

    public void setLook(Integer look) {
        this.look = look;
    }

    public boolean isDeleteType() {
        return deleteType;
    }

    public void setDeleteType(boolean deleteType) {
        this.deleteType = deleteType;
    }

    public boolean isShopConsent() {
        return shopConsent;
    }

    public void setShopConsent(boolean shopConsent) {
        this.shopConsent = shopConsent;
    }

    public Integer getConsentId() {
        return consentId;
    }

    public void setConsentId(Integer consentId) {
        this.consentId = consentId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getUuser() {
        return uuser;
    }

    public void setUuser(User uuser) {
        this.uuser = uuser;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Consent{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", price='" + price + '\'' +
                ", shopNum='" + shopNum + '\'' +
                ", shopType='" + shopType + '\'' +
                ", shopUrl='" + shopUrl + '\'' +
                ", creatTime=" + creatTime +
                ", updateTime=" + updateTime +
                ", userId='" + userId + '\'' +
                ", look=" + look +
                ", deleteType=" + deleteType +
                ", shopConsent=" + shopConsent +
                ", consentId=" + consentId +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", remark='" + remark + '\'' +
                ", user=" + user +
                ", uuser=" + uuser +
                '}';
    }
}
